473,424 Members | 1,913 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,424 software developers and data experts.

ToolTip in DropDownList in TemplateControl

Hi:

How can i display tooltip message on a dropdownlist template control inside
a GridView Footer.

I found this code working well, but it dosen't work inside a gridview:

</head>
<body>
<div id="tooltip"></div>
<form id="form1" runat="server">
<div onmouseover="MostrarTooltip('<%=DropDownList1.ID%> ')"
onmouseout="OcultarTooltip()">
<asp:DropDownList ID="DropDownList1" runat="server" Style="z-index:
101; left: 296px;
position: absolute; top: 176px" Width="144px">
<asp:ListItem Value="Texto Normal">Texto Normal</asp:ListItem>
<asp:ListItem Value="fghfgh">Texto mas largo no
cabe</asp:ListItem>
<asp:ListItem></asp:ListItem>
</asp:DropDownList>

</div>
</form>
</body>
</html>

Here are using a java script function.

Jun 8 '07 #1
1 5225
Hi Laurahn,

From your description, you're using some custom script to display tooltip
for dropdownlist in your ASP.NET web page. The script works well normally,
but fails when the dropdownlist is nested in a GridView template ,correct?

According to the code/template snippet you provided, you use a <divto
wrap the dropdownlist and handle the mouseover and out event. Then, when
you put the dropdownlist in GridView template, does the event
handler(script function) be called? If the function is called, you can try
add some test statement into the function to see at which statement does
the code run into problem.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Jun 11 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Steve R | last post by:
I've built a composite web custom control with a lot of child controls. I assigned ToolTip values to some of these controls. The ToolTip pop-ups were working fine until I monkeyed with the order...
1
by: rejoy_j | last post by:
Hi, Is it possible to set tooltip text for a listitem in a dropdownlist(webcontrol)?.If so how?? Regards RJ ********************************************************************** Sent...
1
by: Lars Netzel | last post by:
If I add a tooltip on a form and then add some text for the ToolText Text on that tooltip for my Datagrid1... it will pop up nice.. Until I have clicked in the grid... then it's like if the Tooltip...
0
by: MattB | last post by:
I'm making a reusable class to load and populate user controls based on database values. I had the basic code working from codebehind, and now I'm moving it to a reusable class. Once in the...
1
by: Oren | last post by:
hi all, i tried to create foreach item in DropDownList a ToolTip. It doesn't work. any idea ? DropDownList ddl; DataTable dt = (DataTable)Session; foreach (DataRow dr in dt.Rows) { ListItem...
0
by: Jake Montgomery | last post by:
I am using .NET 2.0 forms and running on Windows XP SP2. When I have a tooltip on a combo box, and the combo box is expanded (“dropped down”) using the arrow, it will no longer display it’s...
4
by: =?Utf-8?B?UGFkYW0=?= | last post by:
How to get different tooltip for each listitem in dropdownlist in ASP.NET with C#. I am binding dropdownlist using database. Ofcourse each item in dropdownlist will be different. kindly do help...
0
by: =?Utf-8?B?UGFkYW0=?= | last post by:
How to get different tooltip for each listitem in dropdownlist using C#. I am binding dropdownlist using database. Ofcourse each item in dropdownlist will be different. kindly do help me.
0
by: tasmontique | last post by:
I hope someone can help me. I have an error that I can not seem to figure out. All I need is an unbound dropdownlist to navigate to urls withing the website. I have gotten as far as to populate field...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.